package com.yadang.xml.entity;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

@XmlRootElement(name = "Msg")
public class AccountReport {

    private Header header;
    private List<Record> records;

    public Header getHeader() {
        return header;
    }

    @XmlElement(name = "Header")
    public void setHeader(Header header) {
        this.header = header;
    }

    public List<Record> getRecords() {
        return records;
    }

    @XmlElementWrapper(name = "Body")
    @XmlElement(name = "Record")
    public void setRecords(List<Record> records) {
        this.records = records;
    }
}

